package com.ruoyi.net.domain;

import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 网元设备连线对象 net_element_link
 *
 * @author net
 * @date 2024-11-30
 */
public class NetElementLink extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 开始网元id */
    @Excel(name = "开始网元id")
    @ApiModelProperty(value = "开始网元id")
    private String startElementId;

    /** 结束网元id */
    @Excel(name = "结束网元id")
    @ApiModelProperty(value = "结束网元id")
    private String endElementId;

    /** 开始端口id,来自element_port_mode主键 */
    @Excel(name = "开始端口id,来自element_port_mode主键")
    @ApiModelProperty(value = "开始端口id,来自element_port_mode主键")
    private String startPortId;

    /** 结束端口id,来自element_port_mode主键 */
    @Excel(name = "结束端口id,来自element_port_mode主键")
    @ApiModelProperty(value = "结束端口id,来自element_port_mode主键")
    private String endPortId;

    /** 连线名称 */
    @Excel(name = "连线名称")
    @ApiModelProperty(value = "连线名称")
    private String linkName;

    /** 连线类型 */
    @Excel(name = "连线类型")
    @ApiModelProperty(value = "连线类型 1:物理  2:虚拟")
    private String linkType;

    /** 连线样式 */
    @Excel(name = "连线样式")
    @ApiModelProperty(value = "连线样式")
    private String linkStyle;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    @ApiModelProperty(value = "状态")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 开始逻辑域ids */
    @Excel(name = "开始逻辑域ids")
    @ApiModelProperty(value = "开始逻辑域ids")
    private String startGroupId;

    /** 结束逻辑域ids */
    @Excel(name = "结束逻辑域ids")
    @ApiModelProperty(value = "结束逻辑域ids")
    private String endGroupId;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setStartElementId(String startElementId)
    {
        this.startElementId = startElementId;
    }

    public String getStartElementId()
    {
        return startElementId;
    }
    public void setEndElementId(String endElementId)
    {
        this.endElementId = endElementId;
    }

    public String getEndElementId()
    {
        return endElementId;
    }
    public void setStartPortId(String startPortId)
    {
        this.startPortId = startPortId;
    }

    public String getStartPortId()
    {
        return startPortId;
    }
    public void setEndPortId(String endPortId)
    {
        this.endPortId = endPortId;
    }

    public String getEndPortId()
    {
        return endPortId;
    }
    public void setLinkName(String linkName)
    {
        this.linkName = linkName;
    }

    public String getLinkName()
    {
        return linkName;
    }
    public void setLinkType(String linkType)
    {
        this.linkType = linkType;
    }

    public String getLinkType()
    {
        return linkType;
    }
    public void setLinkStyle(String linkStyle)
    {
        this.linkStyle = linkStyle;
    }

    public String getLinkStyle()
    {
        return linkStyle;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setStartGroupId(String startGroupId)
    {
        this.startGroupId = startGroupId;
    }

    public String getStartGroupId()
    {
        return startGroupId;
    }
    public void setEndGroupId(String endGroupId)
    {
        this.endGroupId = endGroupId;
    }

    public String getEndGroupId()
    {
        return endGroupId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("startElementId", getStartElementId())
                .append("endElementId", getEndElementId())
                .append("startPortId", getStartPortId())
                .append("endPortId", getEndPortId())
                .append("linkName", getLinkName())
                .append("linkType", getLinkType())
                .append("linkStyle", getLinkStyle())
                .append("status", getStatus())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("startGroupId", getStartGroupId())
                .append("endGroupId", getEndGroupId())
                .toString();
    }
}
